<template>
  <div class="home">
    <div class="rich-text">
      <div class="plain-rich-text">
        <span>普通富文本</span>
        <Editor v-model="content" :height="260" />
        <div v-html="content" class="content ql-editor"></div>
      </div>
      <div class="full-rich-text">
        <span>可上传图片视频文件的富文本</span>
        <fullEditor v-model="content1" :height="260" />
        <div v-html="content1" class="content ql-editor"></div>
      </div>
    </div>
  </div>
</template>

<script>
import Editor from '@/components/Editor.vue'
import fullEditor from '@/components/fullEditor.vue'

export default {
  name: 'HomeView',
  components: {
    Editor,
    fullEditor
  },
  data() {
    return {
      content: '内容',
      content1: '内容1'
    }
  }
}
</script>
<style lang="scss" scoped>
.rich-text {
  display: flex;
  padding: 0 30px;

  .plain-rich-text {
    margin-right: 30px;
  }

  .plain-rich-text,
  .full-rich-text {
    flex: 1;
  }
}

.content {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid gray;
}
</style>

